package com.cblz.bd.common.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 菜单和权限规则表
 *
 * @TableName ba_menu_rule
 */
@EqualsAndHashCode
@TableName(value = "ba_menu_rule")
@Data
public class BaMenuRule implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 上级菜单
     */
    private Integer pid;
    /**
     * 类型:menu_dir=菜单目录,menu=菜单项,button=页面按钮
     */
    private String type;
    /**
     * 认证标识
     */
    @TableField(value = "authority_identify")
    private String authorityIdentify;
    /**
     * 标题
     */
    private String title;
    /**
     * 规则名称
     */
    private String name;
    /**
     * 路由路径
     */
    private String path;
    /**
     * 图标
     */
    private String icon;
    /**
     * 菜单类型:tab=选项卡,link=链接,iframe=Iframe
     * 这里和前端对应
     */
    @TableField(value = "menu_type")
    private String menu_type;
    /**
     * Url
     */
    private String url;
    /**
     * 组件路径
     */
    private String component;
    /**
     * 缓存:0=关闭,1=开启
     */
    private Integer keepalive;
    /**
     * 扩展属性:none=无,add_rules_only=只添加为路由,add_menu_only=只添加为菜单
     */
    private String extend;
    /**
     * 备注
     */
    private String remark;
    /**
     * 权重(排序)
     */
    private Integer weigh;
    /**
     * 状态:0=禁用,1=启用
     */
    private Integer status;
    @TableLogic
    @TableField("is_delete")
    private Integer isDelete;
    /**
     * 更新时间
     */
    private Long updatetime;

}